package com.cssy.xxkj.logic.dao;

import com.cssy.xxkj.logic.entity.LogicProductionGetItemDO;

import java.util.List;

import org.springframework.dao.DataAccessException;

/**
 * 数据访问对象接口
 * @since 2014-10-09
 */
public interface LogicProductionGetItemDAO extends LogicBizDAO<LogicProductionGetItemDO>{

    /**
     * 插入数据
     * @param logicProductionGetItemDO
     * @return 插入数据的主键
     */
    public String insertLogicProductionGetItemDO(LogicProductionGetItemDO logicProductionGetItemDO) throws DataAccessException;

    /**
     * 统计记录数
     * @param logicProductionGetItemDO
     * @return 查出的记录数
     */
    public Integer countLogicProductionGetItemDOByExample(LogicProductionGetItemDO logicProductionGetItemDO) throws DataAccessException;

    /**
     * 更新记录
     * @param logicProductionGetItemDO
     * @return 受影响的行数
     */
    public Integer updateLogicProductionGetItemDO(LogicProductionGetItemDO logicProductionGetItemDO) throws DataAccessException;

    /**
     * 获取对象列表
     * @param logicProductionGetItemDO
     * @return 对象列表
     */
    public List<LogicProductionGetItemDO> findListByExample(LogicProductionGetItemDO logicProductionGetItemDO) throws DataAccessException;

    /**
     * 根据主键获取logicProductionGetItemDO
     * @param id
     * @return logicProductionGetItemDO
     */
    public LogicProductionGetItemDO findLogicProductionGetItemDOByPrimaryKey(String id) throws DataAccessException;
    
    /**
     * 删除记录
     * @param id
     * @return 受影响的行数
     */
    public Integer deleteLogicProductionGetItemDOByPrimaryKey(String id) throws DataAccessException;
    
    /**
     * 删除记录
     * @param id
     * @return 受影响的行数
     */
    public Integer deleteProById(String id) throws DataAccessException;

}